<template>
	<view class="pages"  :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
		<c-nav-bar :title="titleHeader" ></c-nav-bar>
		<view class="spotInfo">
			<view class="">
				日期：{{day}}
			</view>
			<view class="top">
				<view class="left">
					<span class="blue"></span>
					<span></span>
					<span class="red"></span>
				</view>
				<view class="middle">
					<view>
						<text style="margin-right: 30rpx;color: #c7c7c7;font-weight: 400;">出发地</text>
						<text>{{startSpot}}</text>

					</view>
					<view>
						<text style="margin-right: 30rpx;color: #c7c7c7;font-weight: 400;">目的地</text>
						<text>{{endSpot}}</text>
					</view>
				</view>
			</view>
		</view>
		<view class="image">
			<span class="image1">轮渡<br>
				提示</span>
			<span class="image2" v-if="startSpot=='沈家湾'">前往嵊泗岛轮渡船班时间为9:25～20:00<br>
				请自驾用户注意轮渡时间</span>
			<span class="image2" v-else>前往嵊泗岛轮渡船班时间为10:10~12:30<br>
				请自驾用户注意轮渡时间</span>
			<image style="width: 100%;height: 125rpx;"
				src="https://i.ringzle.com/file/20240112/3ca9fd21b3da48ba819334faf675698b.png" mode="aspectFit">
			</image>
		</view>
		<view class="content" v-if="startSpot=='沈家湾'">
			<span style="margin-left: 20rpx;"> </span>想自驾到泗礁岛的朋友，将导航目的地设置为
			<span style="color: orangered;">“沈家湾客运码头”</span>
			，车子开过东海大桥后，沿途有路牌指引前往沈家湾客运中心。<br>
			<span style="margin-left: 20rpx;">
			</span>想要开车上岛的旅客要购买车客渡的船票，车必须提前半小时上船。由于车位紧张，建议旺季的时候可以把车留在沈家湾停车场。旺季时快艇的加班班次很多，岛上有较完善的公交系统和出租车，往返更便捷.
		</view>
		<view class="content" v-else>
			<span style="margin-left: 20rpx;"> </span>想自驾到泗礁岛的朋友，将导航目的地设置为
			<span style="color: orangered;">“三江客运中心”</span>
			<br>
			<span style="margin-left: 20rpx;">
			</span>想要开车上岛的旅客要购买车客渡的船票，车必须提前半小时上船。由于车位紧张，建议旺季的时候可以把车留在三江停车场。旺季时快艇的加班班次很多，岛上有较完善的公交系统和出租车，往返更便捷.
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				h:uni.getSystemInfoSync().windowHeight - 87,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
				titleHeader:'路线详情',
				startSpot: '',
				endSpot: '',
				day:'',
			}
		},
		onLoad(option) {
			console.log(option, 'option');
			this.startSpot = option.startSpot;
			this.endSpot = option.endSpot;
			 this.day = option.myday;
		}
	}
</script>

<style lang='scss' scoped>
	.pages {
			/* padding-top: 130rpx; */

		.image {
			position: relative;
			width: 100%;
			height: 125rpx;
			color: white;

			.image1 {
				position: absolute;
				left: 23px;
				top: 8px;
				font-size: 28rpx;

			}

			.image2 {
				position: absolute;
				top: 17px;
				left: 80px;
				font-size: 26rpx;
			}
		}

		.content {
			padding: 20rpx 35rpx;
			font-size: 28rpx;


			color: #5A607C;
			line-height: 53rpx;
		}

		.spotInfo {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			background: #FFFFFF;
			border-radius: 24rpx;
			margin: 0px 20rpx;
			padding: 41rpx 20rpx;
			box-shadow: 0rpx 6rpx 20rpx 0rpx rgba(1, 185, 249, 0.1);
			margin: 20rpx 0;

			.top {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				align-items: center;
				height: 100%;


				.left {
					display: flex;
					flex-direction: column;
					align-items: center;
					width: 14%;

					.blue {
						display: block;
						width: 15rpx;
						height: 15rpx;
						background: #188FFE;
						border-radius: 7rpx;
					}

					span:nth-child(2) {
						display: block;
						border-left: 1rpx solid #d5d5d5;
						height: 72rpx;
						border-radius: 7rpx;
						margin: 8rpx 0;
					}

					.red {
						display: block;
						width: 15rpx;
						height: 15rpx;
						background: #FF5252;
						border-radius: 7rpx;
					}
				}

				.middle {
					width: 526rpx;
					font-size: 30rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 600;
					width: 88%;

					view {
						height: fit-content;
						line-height: 50rpx;
						border-bottom: #f7f4f4 1rpx solid;
						padding: 20rpx 0;
					}

					view:nth-child(1) {}
				}

				.right {
					width: 64rpx;
					height: 64rpx;
					background: url('@/static/index/travelPlanning/wfqh.png') center repeat;
					background-size: cover;
				}
			}
		}
	}
</style>